"""
model name : 目标跟踪
file       : 4_训练集与测试集切分.py
information:
    author : OuYang
    time   : 2025/7/21
"""
import os

input_dir = "D:\Downloads\Car24\labels"
output_dir = "D:/Downloads/Car24/val/labels"

val_name_list = [i for i in range(1, 3059, 5)]

print(val_name_list)

for file_name in val_name_list:

    original_file = os.path.join(input_dir, f"{file_name:04d}.txt")
    target_file = os.path.join(output_dir, f"{file_name:04d}.txt")
    print(original_file, target_file)
    os.rename(original_file, target_file)

